<%-- 
    Document   : Login
    Created on : Oct 28, 2009, 1:26:52 AM
    Author     : Phong
--%>
<%
            String us = "";

            if (session.getAttribute("UserName") != null) {
                us = session.getAttribute("UserName").toString();

%>



<form name="login" action="login" method="POST" onsubmit="return checkLogin();">
    <table align="center" width="100%" class="tableLogin">
        <!--DWLayoutTable-->
        <tr>
            <td width="191"></td>
            <td class="fontLogin">Hi  <span style="color:red"><%=us%></span></td>
        </tr>
		<tr>
		<td height="1" class="vien_200">
		</td>
		</tr>
        <tr>
            <td></td>
            <td width="1051" class="fontLogin">
                <a href="include/logoff.jsp" >Log off</a>                   </td>
        </tr>

        <tr>
            <td></td>
            <td class="fontLogin">
                <a href="#" >
                    Mypage
                </a>
            </td>
        </tr>
        <tr>
            <td></td>
            <td class="fontLogin">
                <a href="#" >
                    Edit Info
                </a>
            </td>
        </tr>
        <tr>
            <td></td>
            <td class="fontLogin">
                <a href="#" >
                    My Test
                </a>
            </td>
        </tr>
                <tr>
            <td>&nbsp;</td>
        </tr>
    </table>
</form>



<%
            } else {
%>

<form name="login" action="login" method="POST" onsubmit="return checkLogin();">
    <table align="center" width="100%" class="tableLogin">
        <!--DWLayoutTable-->
        <tr>
            <td width="85" class="fontLogin">
                Username                     </td>
            <td width="155" align="left">
                <input type="text" name="user" value="" size="20" maxlength="50" class="inputLogin" />                    </td>
        </tr>
        <tr>
            <td class="fontLogin">Password </td>
            <td align="left"><input type="password" name="pass" size="20" maxlength="50" class="inputLogin"/></td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
        <tr align="center">
            <td colspan="2" >
                <input type="submit" name="submit" value=" Login " class="btnLogin" />&nbsp;
                <input type="button" name="reset" value="Register"  class="btnLogin"/>                    </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
    </table>
</form>

<%            }
%>
